﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace IISLogAnalyzer
{
    class FolderFileInfo
    {
        private string directoryPath;
        private List<string> lstfilename = new List<string>();
        public string DirecctoryPath
        {
            get
            {
                return directoryPath;
            }
            set
            {
                if (string.IsNullOrEmpty(value))
                {
                    return;
                }
                directoryPath = value;
                DirectoryInfo tempFolder = new DirectoryInfo(directoryPath);
                foreach(FileInfo tempFile in tempFolder.GetFiles())
                {
                    lstfilename.Add(tempFile.Name);
                }
            }
        }
        public void AddFileName(string filename)
        {
            lstfilename.Add(filename);
        }
        public List<string> Listfilename
        {
            get
            {
                return lstfilename;
            }
            set
            {
                lstfilename = value;
            }
        }
    }
}
